/*@license For license information please refer to bernie.licenses.txt*/ (self.webpackChunkgo_guides=self.webpackChunkgo_guides||[]).push([[923],{40200:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.withLocationReactor=t.DEBOUNCE_INTERVAL=void 0;var s=n(98369),f=n(67294),p=n(40129),d=n(82040).ClientLogger.getLoggerWithIdentifier("bernie.client.location-reactor");t.DEBOUNCE_INTERVAL=150,t.withLocationReactor=function(e,r,y){var h=function(h){function v(e){var t=h.call(this,e)||this;return t.componentIsMounted=!1,t.state={location:e.location},t}return o(v,h),v.prototype.componentWillUnmount=function(){this.timeout&&clearTimeout(this.timeout),this.componentIsMounted=!1,y&&y(this.state.location)},v.prototype.componentDidMount=function(){this.componentIsMounted=!0,this.props.location&&this.updateLocation(void 0,this.props.location)},v.prototype.shouldComponentUpdate=function(e,t){return this.props.location.pathname===e.location.pathname&&this.props.location.hash===e.location.hash&&this.props.location.key===e.location.key&&v.isQueryEqual(this.props.location.query,e.location.query)||this.updateLocation(this.props.location,e.location),t.location!==this.state.location},v.isQueryEqual=function(e,t){var n,r,o=Object.keys(e||{}),i=Object.keys(t||{});if(o.length!==i.length)return!1;try{for(var a=l(o),u=a.next();!u.done;u=a.next()){var c=u.value;if(!i.includes(c)||t[c]!==e[c])return!1}}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!0},v.prototype.updateLocation=function(e,o){return a(this,void 0,void 0,(function(){var i=this;return u(this,(function(a){return this.timeout&&clearTimeout(this.timeout),[2,new Promise((function(a,u){i.timeout=(window||n.g).setTimeout((function(){r({prev:e,next:o}).catch((function(e){return d.logEvent(p.BERNIE_CLIENT_EVENTS.LOCATION_REACTOR_CALLBACK_ERROR,e),{query:null}})).then((function(e){var t=i.props.history;t&&o&&e&&e.query&&Object.keys(e.query).length>0?((0,s.updateSearch)({history:t,location:o,newParams:e.query,replace:e.replace}),a(!0)):i.componentIsMounted?i.setState({location:o},(function(){a(!0)})):a(!1)})).catch(u)}),t.DEBOUNCE_INTERVAL)}))]}))}))},v.prototype.render=function(){var t=this.props,n=(t.location,c(t,["location"]));return f.createElement(e,i({location:this.state.location},n))},v}(f.Component);return h.wrappedComponent=h,h}},19253:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=0}))){var n=location.toString().replace(/pwaDialog\w*=[^&]*&?/g,"");history.replaceState(null,document.title||"",n)}else history.replaceState(history.state||{},document.title||"")}}},91825:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.logPerformanceMarkers=void 0;var r=n(40129);t.logPerformanceMarkers=function(e,t,n,o){try{if(e.message="page loaded",o&&(e.pageUsable=o),window.performance&&window.performance.timing){if(window.performance.timing.toJSON)n=window.performance.timing.toJSON();else{var i=window.performance.timing;for(var a in i)"number"==typeof i[a]&&(n[a]=i[a])}n.responseStart&&n.fetchStart&&(e.ttfb=n.responseStart-n.fetchStart),n.domainLookupEnd&&n.domainLookupStart&&(e.dns=n.domainLookupEnd-n.domainLookupStart),n.connectEnd&&n.connectStart&&(e.tcp=n.connectEnd-n.connectStart)}t.performance(e)}catch(u){t.logEvent(r.BERNIE_CLIENT_EVENTS.CATALOGED_DATA_CAPTURE_ERROR,u)}}},61713:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(96013),t)},68428:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationState=void 0,function(e){e.ANONYMOUS="ANONYMOUS",e.IDENTIFIED="IDENTIFIED",e.AUTHENTICATED="AUTHENTICATED"}(t.AuthenticationState||(t.AuthenticationState={}))},34833:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getBexApiContext=void 0;var r=n(62708);t.getBexApiContext=function(e){return{siteId:e.site.id,locale:e.locale,eapid:e.site.eapid,currency:e.currency,device:{type:a(e)},identity:{duaid:e.deviceId,expUserId:o(e),tuid:i(e),authState:u(e)},privacyTrackingState:e.privacyTrackingState||r.PrivacyTrackingState.CAN_NOT_TRACK,debugContext:c(e)}};var o=function(e){return e.user&&e.user.expUserId?e.user.expUserId.toString():null},i=function(e){return e.user&&e.user.tuid?e.user.tuid.toString():null},a=function(e){var t=e.deviceInformation;return t?t.type?t.type:t.mobile&&t.tablet?r.DeviceType.MOBILE_TABLET:t.mobile&&!t.tablet?r.DeviceType.MOBILE_PHONE:r.DeviceType.DESKTOP:r.DeviceType.DESKTOP},u=function(e){return e&&e.user&&e.user.authState?e.user.authState:r.AuthenticationState.ANONYMOUS},c=function(e){if(e.debugContext)return{abacusOverrides:e.debugContext.abacusOverrides||[]}}},62708:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.PrivacySellState=t.PrivacyTrackingState=t.AuthenticationState=t.DeviceType=void 0,function(e){e.APP_PHONE="APP_PHONE",e.APP_TABLET="APP_TABLET",e.CHAT_APP="CHAT_APP",e.DESKTOP="DESKTOP",e.MOBILE_PHONE="MOBILE_PHONE",e.MOBILE_TABLET="MOBILE_TABLET",e.VOICE_APP="VOICE_APP"}(t.DeviceType||(t.DeviceType={})),function(e){e.ANONYMOUS="ANONYMOUS",e.AUTHENTICATED="AUTHENTICATED",e.IDENTIFIED="IDENTIFIED"}(t.AuthenticationState||(t.AuthenticationState={})),function(e){e.CAN_NOT_TRACK="CAN_NOT_TRACK",e.CAN_TRACK="CAN_TRACK"}(t.PrivacyTrackingState||(t.PrivacyTrackingState={})),function(e){e.CAN_NOT_SELL="CAN_NOT_SELL",e.CAN_SELL="CAN_SELL"}(t.PrivacySellState||(t.PrivacySellState={}))},96013:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.TextDirection=t.AuthenticationState=void 0;var i=n(68428);Object.defineProperty(t,"AuthenticationState",{enumerable:!0,get:function(){return i.AuthenticationState}});var a=n(78115);Object.defineProperty(t,"TextDirection",{enumerable:!0,get:function(){return a.TextDirection}}),o(n(62708),t),o(n(34833),t)},78115:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDirection=void 0,function(e){e.LTR="LTR",e.RTL="RTL"}(t.TextDirection||(t.TextDirection={}))},91820:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.QueryRoute=void 0;var a=n(67294),u=n(16550),c=n(21124),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={matchesQuery:t.computeMatch(t.props)},t}return o(t,e),t.prototype.computeMatch=function(e){var t=e.queryMatch,n=e.query,r=e.history,o=this.props.search||r.location.search;return!!t||!!n&&(0,c.matchesQuery)(o,n)},t.prototype.UNSAFE_componentWillMount=function(){var e=this,t=this.props.history;this.unlisten=t.listen((function(){var t=e.computeMatch(e.props);e.state.matchesQuery!==t&&e.setState({matchesQuery:t})}))},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return this.state.matchesQuery?e:null},t=i([u.withRouter],t)}(a.Component);t.QueryRoute=l},51540:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySwitch=void 0;var r=n(67294),o=n(16550),i=n(21124);t.QuerySwitch=function(e){var t,n=(0,o.useLocation)(),a=e.search||n.search,u=!1;return r.Children.forEach(e.children,(function(e){if(!1===u&&r.isValidElement(e)){var n=e.props.query;t=e,u=(0,i.matchesQuery)(a,n)}})),u?r.cloneElement(t,{queryMatch:!0,search:a}):null}},24383:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.updateSearch=void 0;var r=n(17563),o=n(9049);t.updateSearch=function(e){var t,n=e.history,i=e.location,a=e.newParams,u=e.paramsFilter,c=e.newState,l=void 0===c?{}:c,s=e.replace,f=void 0!==s&&s,p=e.queryCombiner;"function"==typeof p?(t=p(r.parse(i.search),"string"==typeof a?r.parse(a):a),t=r.stringify(t)):t=(0,o.mergeQueryString)(i.search,a,u),n[f?"replace":"push"]({pathname:i.pathname,search:t,state:l})}},12506:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0})):[]}function r(e,t,n,o,i){var a,u;return void 0===t&&(t="_"),void 0===n&&(n=!1),void 0===o&&(o={}),("string"!=typeof t||t.length>5)&&(t="_"),n=Boolean(n),"object"==typeof e&&e&&Object.keys(e).forEach((function(c){a=i?"".concat(i).concat(t).concat(c):c,null!==(u=e[c])&&("object"==typeof u&&Object.keys(u).length>0||Array.isArray(u))?Array.isArray(u)&&!1===n?o[a]=u.concat():r(u,t,n,o,a):o[a]=u})),o}function o(e){return void 0===e&&(e=[]),e=n(e),{merge:function(){for(var t=[],n=0;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1] L10nModule"')}var c=r(e);if(!("string"==typeof(a=c).current&&a.globalize instanceof Function))throw new Error('Expected "Bernie.localization" to return an object of type "L10nModule".');return c}catch(l){if(t&&t!==e)return o(t);throw new Error("Could not find locale: ".concat(e," \n").concat(l.message))}}Object.defineProperty(t,"__esModule",{value:!0}),t.importLocale=t.doImport=void 0,t.doImport=o,t.importLocale=function(e){if(!e)throw e=document.documentElement&&document.documentElement.dataset&&document.documentElement.dataset.language,new Error("Locale is not set");return o(e,void 0)}},23303:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(79130),t),o(n(94282),t),o(n(70399),t),o(n(3131),t),o(n(22033),t),o(n(66957),t)},3131:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.L10nModule=void 0;var n=function(){function e(){}return Object.defineProperty(e.prototype,"current",{get:function(){return this.currentLocale},set:function(e){this.currentLocale=e.replace("_","-")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalize",{get:function(){return this.l10nModule},set:function(e){this.l10nModule=e},enumerable:!1,configurable:!0}),e}();t.L10nModule=n},22033:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getCountryCode=t.weekData=void 0,t.weekData={firstDay:{"001":"mon",AD:"mon",AE:"sat",AF:"sat",AG:"sun",AI:"mon",AL:"mon",AM:"mon",AN:"mon",AR:"mon",AS:"sun",AT:"mon",AU:"mon",AX:"mon",AZ:"mon",BA:"mon",BD:"sun",BE:"mon",BG:"mon",BH:"sat",BM:"mon",BN:"mon",BR:"sun",BS:"sun",BT:"sun",BW:"sun",BY:"mon",BZ:"sun",CA:"sun",CH:"mon",CL:"mon",CM:"mon",CN:"mon",CO:"mon",CR:"mon",CY:"mon",CZ:"mon",DE:"mon",DJ:"sat",DK:"mon",DM:"sun",DO:"sun",DZ:"sat",EC:"mon",EE:"mon",EG:"sat",ES:"mon",ET:"sun",FI:"mon",FJ:"mon",FO:"mon",FR:"mon",GB:"mon",GE:"mon",GF:"mon",GP:"mon",GR:"mon",GT:"sun",GU:"sun",HK:"sun",HN:"sun",HR:"mon",HU:"mon",ID:"sun",IE:"mon",IL:"sun",IN:"sun",IQ:"sat",IR:"sat",IS:"mon",IT:"mon",JM:"sun",JO:"sat",JP:"sun",KE:"sun",KG:"mon",KH:"sun",KR:"sun",KW:"sat",KZ:"mon",LA:"sun",LB:"mon",LI:"mon",LK:"mon",LT:"mon",LU:"mon",LV:"mon",LY:"sat",MA:"sat",MC:"mon",MD:"mon",ME:"mon",MH:"sun",MK:"mon",MM:"sun",MN:"mon",MO:"sun",MQ:"mon",MT:"sun",MV:"fri",MX:"mon",MY:"mon",MZ:"sun",NI:"sun",NL:"mon",NO:"mon",NP:"sun",NZ:"mon",OM:"sat",PA:"sun",PE:"sun",PH:"sun",PK:"sun",PL:"mon",PR:"sun",PT:"mon",PY:"sun",QA:"sat",RE:"mon",RO:"mon",RS:"mon",RU:"mon",SA:"sun",SD:"sat",SE:"mon",SG:"mon",SI:"mon",SK:"mon",SM:"mon",SV:"sun",SY:"sat",TH:"sun",TJ:"mon",TM:"mon",TN:"sun",TR:"mon",TT:"sun",TW:"sun",UA:"mon",UM:"sun",US:"sun",UY:"mon",UZ:"mon",VA:"mon",VE:"sun",VI:"sun",VN:"mon",WS:"sun",XK:"mon",YE:"sun",ZA:"sun",ZW:"sun"}};t.getCountryCode=function(e){var t=e&&e.split(/_|-/);return t&&t.length>1?t[1]:"US"}},70399:function(e,t,n){var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0&&(this.locale=e)}return e.prototype.ensureInitialized=function(){this.globalize||this.setLocale(this.locale)},e.prototype.setLocale=function(e){var t=(0,a.importLocale)(e);return this.locale=t.current,this.globalize=t.globalize,{current:this.locale,globalize:this.globalize}},e.prototype.formatDate=function(e,t){var n,i;void 0===t&&(t={}),this.ensureInitialized();var a={};try{for(var u=r(Object.entries(t)),c=u.next();!c.done;c=u.next()){var s=o(c.value,2),f=s[0],p=s[1];l.includes(f)&&(a[f]=p)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}try{return this.globalize(this.locale).formatDate(e,a)}catch(y){return""}},e.prototype.parseLocalDateString=function(e,t){var n,i;void 0===t&&(t={}),this.ensureInitialized();var a={};try{for(var u=r(Object.entries(t)),c=u.next();!c.done;c=u.next()){var s=o(c.value,2),f=s[0],p=s[1];l.includes(f)&&(a[f]=p)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}try{return this.globalize(this.locale).parseDate(e,a)}catch(y){throw Error("Failed to parse ".concat(e," for ").concat(this.locale,": ").concat(y.message))}},e.prototype.formatDateString=function(e,t){if(void 0===t&&(t={}),"string"==typeof e&&e.length>0||e instanceof Date){var n=e instanceof Date?e:(0,c.parseDate)(e);return this.formatDate(n,t)}return""},e.prototype.formatText=function(e){for(var t,n=[],r=1;r0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(new Set(e[n].concat(t[n]))),!1):t[n]})),e}),{})},L=function(e){return S(void 0,void 0,void 0,(function(){var t,n,r;return R(this,(function(o){switch(o.label){case 0:return(t=new m.f).update(e),[4,t.digest()];case 1:return n=o.sent(),r=Array.from(n),[2,r.map((function(e){return e.toString(16).padStart(2,"0")})).join("")]}}))}))};function k(e,t){return(0,_.A)(t(e))}var M=function(){return"undefined"!=typeof sessionStorage&&null!==sessionStorage.getItem("disableAPQ")};function N(e){void 0===e&&(e={});var t=e.browserTimeout,n=e.ssrForceFetchDelay,r=e.retryStrategy,i=e.usePossibleTypes,c=e.__EXPERIMENTAL__browser_reload_on_auth_error,h=e.__EXPERIMENTAL__no_batch_queries,v=e.typePolicies,g=void 0===v?{}:v,b=e.possibleTypes,m=void 0===b?[]:b,_=e.allowBrowserAPQRequests,O=void 0===_||_,E=i?T(m):{};return{name:"apollo",onBrowserHydrateRenderContext:function(e,i){var u=e.hydratedState,d=e.logger,v=e.getAppData,b=e.setAppData,m=u.apolloState,_=u.clientInfo,P=v().stores,S=P&&P.page||{},R=x(h,{uri:"".concat(S.baseUrl||"","/graphql"),headers:{"Client-Info":_},credentials:"same-origin",fetch:a(),print:k}),j=(0,y.N)({sha256:L}).concat(R),C=O&&!M()?l.i.split((function(e){return e.getContext().disableApq}),R,j):R,T=[w(d,c),t?new(o())(t):null,r?D(d,r):null,A(S),C].filter(Boolean),N={dataIdFromObject:function(e){return(0,s.uG)(e)},typePolicies:g,possibleTypes:E};return b({apollo:{client:new f.f({link:l.i.from(T),cache:new p.h(N).restore(m),resolvers:{},ssrForceFetchDelay:n})}}),i(e)},onBrowserWrapRootElement:function(e,t){var n=e.getAppData,r=e.setRootElement,o=n().apollo.client;return r((function(e){return function(t){return u.createElement(d.e,{client:o},u.createElement(e,null,t.children))}})),t(e)}}}},26373:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var r=n(67294),o=n(98250),i=n(66173),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function h(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0?this.publishForServerSideRendering((0,a.ZN)(this.analyticsData)):this.logger&&this.logger.logEvent(m,"Empty analytics data from hydration ('publishClientSidePayload' may have not been called during SSR)")},t.prototype.setPageNamespace=function(e){"string"!=typeof e&&(e=""),this.namespace=e},t.prototype.publishClientSidePayload=function(e){var t,n;try{this.analyticsData=[],(t=this.analyticsData).push.apply(t,h([],y(e),!1)),this.analyticsContext&&0!==this.analyticsContext.length&&(this.overrideAnalyticsContextTraceId(e),this.overrideAnalyticsContextPageUrlAndReferrerUrl(e),(n=this.analyticsData).push.apply(n,h([],y((0,a.ZN)(this.analyticsContext)),!1))),u.PlatformAnalyticsStore.getPlatformAnalytics().publishClientSidePayload((0,a.ZN)(this.analyticsData))}catch(r){this.logger.logEvent(i.BERNIE_CORE_EVENTS.PUBLISH_ANALYTICS_ERROR,r)}},t.prototype.markPageUsable=function(e){u.PlatformAnalyticsStore.getPlatformAnalytics().markPageUsable(e)},t.prototype.resetAnalyticsForNewPage=function(){u.PlatformAnalyticsStore.resetAnalyticsForNewPage()},t.prototype.trackEvent=function(e,t,n,r,o,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1),void 0===a&&(a=[]);try{(0,u.trackEvent)(this.namespace,e,t,n,r,o,this.logger,a)}catch(c){this.logger&&this.logger.logEvent(i.BERNIE_CORE_EVENTS.TRACK_EVENT_ERROR,c)}},t.prototype.clickTracker=function(e,n,r,o,i,a){var u=this;return function(){t.prototype.trackEvent.call(u,e,n,u.omnitureData,r,i,a),"function"==typeof o&&o()}},t.prototype.setupTracker=function(e,n,r,o){var i=this;if(e){return{id:e,description:n,callback:function(e,n){return t.prototype.trackEvent.call(i,e,n,i.omnitureData,null,r,o)}}}},t.prototype.publishForServerSideRendering=function(e){try{u.PlatformAnalyticsStore.getPlatformAnalytics().publishClientSidePayload(e)}catch(t){this.logger.logEvent(i.BERNIE_CORE_EVENTS.PUBLISH_ANALYTICS_ERROR,t)}},t.prototype.overrideAnalyticsContextTraceId=function(e){var t=this.getFirstAvailableTraceIdFromPayloads(e);t&&this.analyticsContext.forEach((function(e){e.traceId=t,e.adobeMappedData.prop10=t}))},t.prototype.overrideAnalyticsContextPageUrlAndReferrerUrl=function(e){var t=this;this.analyticsContext.forEach((function(n){if(window.location&&window.location.href){var r=n.adobeMappedData.pageURL;n.adobeMappedData.pageURL=window.location.href,n.adobeMappedData.referrer=r}else{var o=t.getFirstAvailableReferrerUrlFromPayloads(e);o&&(n.adobeMappedData.referrer=o)}}))},t.prototype.getFirstAvailableTraceIdFromPayloads=function(e){if(e&&0!==e.length){var t=e.filter((function(e){return e.hasOwnProperty("traceId")})).map((function(e){return e.traceId}));if(t&&0!==t.length)return t[0]}return null},t.prototype.getFirstAvailableReferrerUrlFromPayloads=function(e){if(e&&0!==e.length){var t=e.filter((function(e){return e.adobeMappedData&&e.adobeMappedData.hasOwnProperty("referrer")})).map((function(e){return e.adobeMappedData.referrer}));if(t&&0!==t.length)return t[0]}return null},t.DEFAULTS={namespace:"",omnitureData:{},requestId:"",analyticsData:[],analyticsContext:[]},d([a.LO],t.prototype,"namespace",void 0),d([a.LO],t.prototype,"omnitureData",void 0),d([a.LO],t.prototype,"analyticsData",void 0),d([a.LO],t.prototype,"analyticsContext",void 0),d([a.aD],t.prototype,"setPageNamespace",null),d([a.aD],t.prototype,"publishClientSidePayload",null),d([a.aD],t.prototype,"markPageUsable",null),d([a.aD],t.prototype,"resetAnalyticsForNewPage",null),t}(v),O=function(e){function t(t,n,r){void 0===r&&(r=c.NOOP_LOGGER);var o=e.call(this,{},r)||this;return o.experimentLogger=n,o.exposures=t&&t.exposures,o}return f(t,e),t.prototype.logExperiment=function(e,t,n){this.experimentLogger(e,t,n)},t.prototype.hydrate=function(e){this.exposures=e.exposures},d([a.LO],t.prototype,"exposures",void 0),t}(v),E=function(e,t){var n={experiment:new O(e.experiment,(0,i.getExperimentLogger)({logger:t}),t),context:new g(e.context,t),analytics:new _({},t),page:new b(e.page,t)};return n.analytics.hydrate(e.analytics),e.context||delete n.context,e.experiment||delete n.experiment,n},w=function(e,t,n,r){var o={};return"function"==typeof e?Object.assign(o,p({},e({bexApiContext:n,l10n:r}))):"object"==typeof e&&Object.keys(e).forEach((function(t){var i=e[t];o[t]=i({bexApiContext:n,l10n:r})})),Object.keys(o).forEach((function(e){var n;null===(n=o[e])||void 0===n||n.hydrate(t[e])})),o};function P(e){return void 0===e&&(e={}),{name:"mobx",onBrowserHydrateRenderContext:function(t,n){var r=e.clientStores;if(!r||!(null==r?void 0:r.stores))throw new Error("[config]: There was a problem loading client stores");var o=t.setAppData,i=t.logger,a=(0,t.getAppData)(),u=a.l10n,c=a.stores,s=a.context,f=E(c,i),d=(0,l.getBexApiContext)(f.context||s),y=w(r.stores,c,d,u);return o({stores:p(p({},f),y)}),n(t)},onBrowserWrapRootElement:function(e,t){var n=e.getAppData;return(0,e.setRootElement)((function(e){return function(t){return o.createElement(r.zt,p({},n().stores),o.createElement(e,null,t.children))}})),t(e)}}}},44552:function(e,t,n){n.r(t),n.d(t,{default:function(){return i}});var r=n(67294),o=n(36254);function i(){return{name:"pagedata",onBrowserHydrateRenderContext:function(e,t){var n=e.hydratedState;return(0,e.setAppData)({pageDataContext:n.pageDataContext}),t(e)},onBrowserWrapRootElement:function(e,t){var n=e.getAppData,i=e.setRootElement,a=n().pageDataContext;return i((function(e){return function(t){return r.createElement(o.PageDataProvider,{pageDataContext:a},r.createElement(e,null,t.children))}})),t(e)}}}},54980:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.onBrowserWrapRootElement=t.onBrowserInit=t.onBrowserHydrateRenderContext=void 0;var r=n(99045);Object.defineProperty(t,"onBrowserHydrateRenderContext",{enumerable:!0,get:function(){return r.onBrowserHydrateRenderContext}});var o=n(79079);Object.defineProperty(t,"onBrowserInit",{enumerable:!0,get:function(){return o.onBrowserInit}});var i=n(94502);Object.defineProperty(t,"onBrowserWrapRootElement",{enumerable:!0,get:function(){return i.onBrowserWrapRootElement}})},99045:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=1&&(r=e(n({},t.appData))):"object"==typeof e&&e&&(r=e),t.appData=n(n({},t.appData),r||{})}}};t.setPluginState=function(e){r=n(n({},r),e)};t.getPluginState=function(){return r}},1188:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0?(l&&h.unshift(p(u.executionTimerPlugin,{})),v=c.apply(void 0,h),g=v(l?f:s),(b=g([],r({},n))).then((function(){(null==y?void 0:y.saveState)&&"function"==typeof n.getAppData&&(0,a.setPluginState)(n.getAppData())})),[2,b]):[2,null]):[2,null]}))}))}},66771:function(e,t){var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function u(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0&&(null==o?void 0:o.closeAllDialogs)?(0,i.updateSearch)({history:d,location:y,newParams:r({},null==o?void 0:o.additionalQueryParams),replace:!0,queryCombiner:function(e){var o,i=(0,l.filterQueryByAllDialogs)(e,v);return r(r({},i),((o={})[n]=t,o))}}):(e+=1,(0,i.updateSearch)({history:d,location:y,newParams:r(r({},null==o?void 0:o.additionalQueryParams),(a={},a[n]=t,a))}))},m=function(t){var o;v.length>1&&(null==t?void 0:t.closeAllDialogs)?(e&&e===v.length?d.go(-1*v.length):(0,i.updateSearch)({history:d,location:y,newParams:r({},null==t?void 0:t.additionalQueryParams),replace:!0,queryCombiner:function(e){return(0,l.filterQueryByAllDialogs)(e,v)}}),e=0):e?(e-=1,d.goBack()):(0,i.updateSearch)({history:d,location:y,newParams:r(r({},null==t?void 0:t.additionalQueryParams),(o={},o[n]=void 0,o)),replace:!0}),p&&p()},_=function(){f&&m()};return o.useEffect((function(){var e,r=y.search||{},o=(0,i.matchesQuery)(r,((e={})[n]=t,e));o!==u&&(s(o),g({dialogId:t,isOpen:o,key:n}))}),[y]),{ComponentFactory:o.useCallback((function(e){return u?o.createElement(c.Layer,{id:t,onDismiss:_},e.children||null):null}),[u]),actions:{closeDialog:m,openDialog:b,toggleDialog:function(){u?m():b()}}}}}}t.buildDialogContext=s;t.DialogProvider=function(e){var t=e.children,n=o.useMemo((function(){return s()}),[]);return o.createElement(l.OpenedDialogsProvider,null,o.createElement(u.DialogProvider,{value:n},t))}},90417:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.OpenedDialogsProvider=t.useOpenedDialogContext=void 0;var o=n(67294),i=n(509),a=o.createContext({openedDialogs:[],dialogDispatch:function(){}});t.useOpenedDialogContext=function(){return o.useContext(a)};t.OpenedDialogsProvider=function(e){var t=e.children,n=r(o.useReducer(i.dialogReducer,[]),2),u=n[0],c=n[1],l=o.useMemo((function(){return{openedDialogs:u,dialogDispatch:c}}),[u,c]);return o.createElement(a.Provider,{value:l},t)}},50530:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=void 0;var a,u,c,l=n(67294),s=n(67701),f=n(98369),p=n(98369),d=(u={},c=0,function(e,t,n,r){if(void 0===e&&(e=s.NOOP_LOGGER),r&&!u[r]){var o=new Error("ErrorBoundary ".concat(r));o.stack="".concat(t," errorBoundaryLabel=").concat(r," errorBoundaryDetails=").concat(JSON.stringify(n)),u[r]=o}else c++;a||(a=setTimeout((function(){for(var t in u)Object.prototype.hasOwnProperty.call(u,t)&&(u[t].message+=" onErrorCount=".concat(c),e&&e.logEvent(f.BERNIE_CORE_EVENTS.REACT_ROUTE_ERROR,(0,s.getErrorString)(u[t])));u={},c=0,a=null}),2e3))}),y=function(e){function t(t){var n=e.call(this,t)||this;return n.state={renderError:null,renderErrorInfo:null},n}return o(t,e),t.prototype.componentDidCatch=function(e,t){this.setState({renderError:e,renderErrorInfo:t}),d(this.props.logger,e,t,this.props.label)},t.prototype.render=function(){return this.state.renderError?this.props.fallback&&l.isValidElement(this.props.fallback)?this.props.fallback:null:this.props.children},t=i([(0,p.logger)("errorBoundary")],t)}(l.Component);t.ErrorBoundary=y},41303:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Layer=t.LayerManager=t.ErrorBoundary=void 0;var i=n(50530);Object.defineProperty(t,"ErrorBoundary",{enumerable:!0,get:function(){return i.ErrorBoundary}});var a=n(32887);Object.defineProperty(t,"LayerManager",{enumerable:!0,get:function(){return a.LayerManager}});var u=n(87944);Object.defineProperty(t,"Layer",{enumerable:!0,get:function(){return u.Layer}}),o(n(2565),t)},74368:function(e,t,n){var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.LayerManager=void 0;var o=n(67294),i=n(51725),a=n(74368);t.LayerManager=function(e){var t=e.children,n=r(o.useReducer(a.layerManagerReducer,[]),2),u=n[0],c=n[1],l=o.useRef(),s=o.useRef(),f="app-layer-base".concat(0===u.length?"--active":"");return o.createElement(a.LayerProvider,{value:{layers:u,dispatchLayerAction:c,appBaseRef:l,layerRootRef:s}},o.createElement(i.DialogProvider,null,o.createElement("div",{id:"app-layer-manager",ref:s},o.createElement("div",{id:"app-layer-base","aria-hidden":Boolean(u.length),className:f,ref:l},t))))}},87944:function(e,t,n){var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.Layer=void 0;var o=n(67294),i=n(73935),a=n(74368);t.Layer=function(e){var t=e.id,n=e.onDismiss,u=e.children,c=o.useRef(null),l=r(o.useState(!1),2),s=l[0],f=l[1],p=(0,a.useLayerContext)(),d=p.layers,y=p.dispatchLayerAction,h=p.layerRootRef,v=d.findIndex((function(e){return e===t})),g=d.length&&v===d.length-1,b=o.useCallback((function(e){g&&27===e.keyCode&&(e.preventDefault(),n&&"function"==typeof n&&n())}),[n,g]),m=o.useCallback((function(e){g&&e.target===c.current&&n&&"function"==typeof n&&(e.preventDefault(),n())}),[n,g]);if(o.useEffect((function(){return f(!0),y({id:t,type:"push"}),function(){y({id:t,type:"pop"})}}),[]),!s||!h.current)return null;var _="uitk-dialog-layer uitk-dialog-layer-responsive ".concat(g?"layer-overlay-active":""),O="app-layer-stacked-".concat(v),E="app-layer-".concat(t),w=o.createElement("div",{id:E,className:_,key:O,"aria-hidden":!g,onClick:m,onKeyUp:b,tabIndex:-1,ref:c},u);return i.createPortal(w,h.current,"layer-".concat(t))}},82281:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LoadingSpinner=void 0;var r=n(67294);t.LoadingSpinner=function(){return r.createElement("div",{className:"code-split-loading"},r.createElement("span",{className:"uitk-loader","aria-hidden":!0}),r.createElement("style",{dangerouslySetInnerHTML:{__html:[".code-split-loading { display: block; height: 100vh; padding-top: 30vh; }",".code-split-loading > span, .code-split-loading > img { display: block; margin-left: auto; margin-right: auto; text-align: center; }",".code-split-loading > img { height: auto; width: 130px; margin-bottom: 1rem; }"].join("\n")}}))}},62426:function(e,t,n){var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderStatus=void 0;var o=n(67294);t.RenderStatus=function(){var e=r(o.useState(!1),2),t=e[0],n=e[1];return o.useEffect((function(){n(!0)})),o.createElement("div",{"data-stid":"render-status--".concat(t?"hydrated":"static")})}}}]); //# sourceMappingURL=bernie.a045d9b5a77edf11fab3.js.map